package cn.flying.cloud.task.core.batch.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.StringUtils;

/**
 * Batch相关配置项
 *
 * @author: admin
 * @date: 2024年02月19日 10:14
 * @version: 1.0
 */
@Configuration
@ConfigurationProperties(prefix = "batch")
public class BatchProperties {

    private String path;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = StringUtils.hasText(path) ? path : "/home/app/batch";
    }
}
